import request from '@/utils/request'
export function getList(data) {
  return request({
    url: '/tranList',
    method: 'get',
    params: data
  })
}

export function register(data) {
  return request({
    url: '/addTran',
    method: 'post',
    data
  })
}

export function update(data) {
  console.log(data)
  return request({
    url: '/updateTran',
    method: 'put',
    data
  })
}

export function deleteById(data) {
  return request({
    url: '/deleteTran',
    method: 'delete',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
